package com.metaera.app.controller.presenter;

import com.metaera.app.controller.core.SimplePaginationPresenter;
import com.metaera.app.data.DataRepository;
import com.metaera.app.data.model.BasicListResponse;
import com.metaera.app.data.model.NoticeListResponse;
import com.metaera.app.data.network.ApiParam;

import io.reactivex.Observable;

public class NoticeListPresenter extends SimplePaginationPresenter<NoticeListResponse> {
    @Override
    protected Observable<BasicListResponse<NoticeListResponse>> execute() {
        return DataRepository.getInstance()
                .getNoticeList(ApiParam.NOTICE_NORMAL_STATUS, mPage, ApiParam.PAGE_SIZE);
    }
}
